import router from '@system.router'

//var picker1value = null;
//var picker2value = null;

export default {
    data: {
        picker1range: ["1", "2", "3"],
        picker2range: ["较慢", "舒缓", "较快"],
        picker1value:null,
        picker2value:null,
    },
    clickAction() {
        console.log(this.picker1value);
        console.log(this.picker2value);
        router.replace({
            uri: 'pages/daojishi/daojishi',
            params: {"data1": this.picker1value, "data2": this.picker2value}
        });
    },
    changeAction1(pv) {
        this.picker1value = pv.newValue;
    },
    changeAction2(pv) {
        this.picker2value = pv.newValue;
    },
    onInit() {
        this.picker1value=this.picker1range[1];
        this.picker2value=this.picker2range[1];
    },
    onReady() {

    },
    onShow() {

    },
    onDestroy() {

    }
}
